package pl.engine.model
{
	import pl.error.ValueError;
	/**
	 * @author michalr
	 */
	public class MapGrid
	{
		private static var _TILE_W : uint;
		private static var _TILE_H : uint;
		
		private static var _ISO_W:uint;
		private static var _ISO_H:uint;
		
		public static var GRID_W_COUNT : uint;
		public static var GRID_H_COUNT : uint;
			
		public static function get ISO_W():uint
		{
			if(_ISO_W == 0)throw new Error(ValueError.VALUE_NOT_YET_INITIATED);
			return _ISO_W;
		}
		
		public static function set ISO_W(val:uint):void
		{
			_ISO_W = val;
		}
		
		public static function get ISO_H():uint
		{
			if(_ISO_H == 0)throw new Error(ValueError.VALUE_NOT_YET_INITIATED);
			return _ISO_H;
		}
		
		public static function set ISO_H(val : uint):void
		{
			_ISO_H = val;
		}
		// TILES
		
		public static function get TILE_W():uint
		{
			if(_TILE_W == 0)throw new Error(ValueError.VALUE_NOT_YET_INITIATED);
			return _TILE_W;
		}
		
		public static function set TILE_W(val:uint):void
		{
			_TILE_W = val;
		}
		
		public static function get TILE_H():uint
		{
			if(_TILE_H == 0)throw new Error(ValueError.VALUE_NOT_YET_INITIATED);
			return _TILE_H;
		}
		
		public static function set TILE_H(val : uint):void
		{
			_TILE_H = val;
		}
		
	}
}
